#!/usr/bin/env python3
# encoding=utf-8

import logging

logger = logging.getLogger(__name__)


def check_availability_is_normal(status):
    try:
        status = int(status) if status else 0
        if 200 <= status < 300:
            return True
        else:
            return False
    except Exception as err:
        logger.exception(repr(err))
        return False
